package com.cr.admin.system.service.impl;

import com.cr.admin.system.mapper.SysOperateLogMapper;
import com.cr.admin.system.pojo.dto.SysOperateLogQuery;
import com.cr.admin.system.pojo.entity.SysOperateLog;
import com.cr.admin.system.service.ISysOperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysOperateLogServiceImpl implements ISysOperateLogService {

    @Autowired
    private SysOperateLogMapper sysOperateLogMapper;

    @Override
    public void insert(SysOperateLog sysOperateLog) {
        sysOperateLogMapper.insert(sysOperateLog);
    }

    @Override
    public SysOperateLog selectById(Long id) {
        return sysOperateLogMapper.selectById(id);
    }

    @Override
    public List<SysOperateLog> selectList(SysOperateLogQuery query) {
        return sysOperateLogMapper.selectSysOperateLogList(query);
    }

}
